#!/bin/bash
read -p "请输入第一个数字：" a
read -p "请输入第二个数字：" b
#对2个数字进行算术运算
echo "a=${a},b=${b}"
echo "a+b=`expr $a + $b`"
echo "a-b=`expr $a - $b`"
echo "b*a=`expr $a \* $b`"  #需要转义
echo "a/b=`expr $a / $b`"
echo "a%b=`expr $a % $b`"

